from django.db import models

from utils.BaseModel import BaseModel


# Create your models here.

class User(BaseModel):
    username = models.CharField(max_length=32, default='', unique=True, verbose_name='用户名')
    phone = models.CharField(max_length=11, default='', verbose_name='手机号')
    email = models.CharField(max_length=64, default='', verbose_name='邮箱')
    password = models.CharField(max_length=128, default='', verbose_name='密码')

    def __str__(self):
        return self.username

    class Meta:
        db_table = 'user'
